var http = require('http');
var url = require('url');
var util = require('util');

http.createServer(function(req,res){

	res.writeHead(200,{'content-type':'text/plain'});
	res.end(util.inspect(url.parse(req.url,true)));
}).listen(3000);